package com.tdf.webblog.service.serviceImpl;

import com.tdf.webblog.dao.AdminRoleMenuDAO;
import com.tdf.webblog.entity.AdminRoleMenu;
import com.tdf.webblog.service.AdminRoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminRoleMenuServiceImpl implements AdminRoleMenuService {

    @Autowired
    private AdminRoleMenuDAO adminRoleMenuDAO;

    @Override
    public List<AdminRoleMenu> findAllByRid(List<Integer> rids) {
        return adminRoleMenuDAO.findAllByRid(rids);

    }

    @Override
    public List<AdminRoleMenu> findAllByRid(int rid) {
        return adminRoleMenuDAO.findAllByRid1(rid);
    }
}
